package io.itit.ecp.admin.provide.action.resp.miniprogram;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;


/**
 * 储能统计
 */
@Data
@Accessors(chain = true)
@ApiModel("储能统计")
public class EnergyStorageStatisticsResp implements Serializable {


    @ApiModelProperty("储能利用率")
    private BigDecimal energyStorage;

    @ApiModelProperty("充电次数")
    private Integer chargingCycles;

    @ApiModelProperty("放电次数")
    private Integer dischargeFrequency;

    @ApiModelProperty("当前功率")
    private BigDecimal currentPower;

    @ApiModelProperty("储能容量")
    private BigDecimal energyStorageCapacity;

    @ApiModelProperty("储能电荷状态")
    private BigDecimal chargeState;

    @ApiModelProperty("储能健康状态")
    private BigDecimal healthState;

    @ApiModelProperty("统计信息")
    private List<StaticsInfo> staticsInfos;

    @Data
    @Accessors(chain = true)
    @ApiModel("统计信息")
    public static class StaticsInfo implements Serializable {

        @ApiModelProperty("名称")
        private String name;

        @ApiModelProperty("数据")
        private List<DataItem> dataItems;
    }


    @Data
    @Accessors(chain = true)
    @ApiModel("统计信息")
    public static class DataItem implements Serializable {

        @ApiModelProperty("时间")
        private String time;

        @ApiModelProperty("值")
        private BigDecimal value;
    }


}
